#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Font Awesome Viewlet Module

Mikan Python Web Framework
"""

__author__ = "K.Sonohara"
__status__ = "develop"
__version__ = "0.0.0_45"
__date__    = "2014/05/04"
__license__ = 'LGPL'

# ------------------------------------------------------------
## Import Section
# ------------------------------------------------------------
# Python
import traceback

# ESiPC
from esipc import ESiPCProperty

# Mikan
from mikan.core import MIKAN
from mikan.viewlet import MikanSpanViewlet
from mikan.viewlet.jqueryviewlet import MikanBannerSilderItem

# ------------------------------------------------------------
## Variable Section
# ------------------------------------------------------------

# ------------------------------------------------------------
## Mikan Contant
# ------------------------------------------------------------
class MIKAN_FA(MIKAN):
	SIZE_NORMAL = None;
	SIZE_LG = "lg";
	SIZE_2X = "2x";
	SIZE_3X = "3x";
	SIZE_4X = "4x";
	SIZE_5X = "5x";

# ------------------------------------------------------------
## Function Section
# ------------------------------------------------------------

# ------------------------------------------------------------
## Class Section
# ------------------------------------------------------------

class AbstractMikanFASpanViewlet(MikanSpanViewlet, MIKAN_FA):

	def __init__(self, parent):
		super(AbstractMikanFASpanViewlet, self).__init__(parent)

class MikanFAIconViewlet(AbstractMikanFASpanViewlet):

	def __init__(self, parent, icon_name, size=None):
		super(MikanFAIconViewlet, self).__init__(parent)
		self.clazz = "fa  fa-%s" % (icon_name, size)
		if size:
			self.clazz = "%s fa-%s" % (self.clazz, size)
		self.sortkey = 1

# ------------------------------------------------------------
## Main Section
# ------------------------------------------------------------

# ------------------------------------------------------------
